package com.sgj.demo.controller;

import com.sgj.demo.service.IDemoService;
import com.sgj.mvcframework.annotation.ShenAutowired;
import com.sgj.mvcframework.annotation.ShenController;
import com.sgj.mvcframework.annotation.ShenRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 沈国纪
 * @date 2021/12/17 23:35
 */
@ShenController
@ShenRequestMapping("/demo")
public class DemoController {

	@ShenAutowired
	private IDemoService demoService;

	@ShenRequestMapping("/query")
	public String query(HttpServletRequest request, HttpServletResponse response, String name) {
		return demoService.get(name);
	}
}